package com.zy.dp.template.example2;

public class Client
{
	public static void main(String[] args)
	{

		LoginModel lm = new LoginModel();

		lm.setLoginId("admin");
		lm.setPwd("workerpwd");

		LoginTemplate lt = new WorkerLogin();

		LoginTemplate lt2 = new NormalLogin();

		boolean flag = lt.login(lm);

		System.out.println(flag);

		boolean flag2 = lt2.login(lm);

		System.out.println(flag2);

	}
}
